-- GENERATED SPELL FOR [Overlord Runthak] --


function spell0_14392(pUnit, Event) --@Intimidating Roar,n/a--
pUnit:FullCastSpellOnTarget(16508,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14392', 8264, 1)
end

function spell1_14392(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(16509,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14392', 15000, 1)
end

function spell2_14392(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14392', 627, 1)
end

function Sorts_14392(pUnit, Event)
local choix_sorts_14392 = math.random(0, 2)
if choix_sorts_14392 == 0 then
pUnit:RegisterEvent('spell0_14392', 1, 1)
end
if choix_sorts_14392 == 1 then
pUnit:RegisterEvent('spell1_14392', 1, 1)
end
if choix_sorts_14392 == 2 then
pUnit:RegisterEvent('spell2_14392', 1, 1)
end
end

function mob14392_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14392', math.random(1500, 3000), 1)
end

function mob14392_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14392_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14392_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14392, 1, 'mob14392_Action')
RegisterUnitEvent(14392, 2, 'mob14392_Leave')
RegisterUnitEvent(14392, 3, 'mob14392_Kill')
RegisterUnitEvent(14392, 4, 'mob14392_Die')
